<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use DB;
class ManController extends Controller
{
    //首页显示
    public function index()
    {
        var_dump(222);die;

    	$data=DB::table('article')->join('cate','article.cate_id','=','cate.id')->get();
    	
    	return view('man.index',['data'=>$data]);
    }

    // 标签云
    public function getTag()
    {
    	$data=DB::table('article')->join('cate','article.cate_id','=','cate.id')->get();
    	return view('man.tag',['data'=>$data]);
    }
}
